package delivery.order.service.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;


/**
 * 该接口会在程序启动后被后台调用
 */
@Component
public class CommandTask implements CommandLineRunner {
    private static final Logger logger = LoggerFactory.getLogger(CommandTask.class);

    @Override
    public void run(String... args) throws Exception {
        logger.warn("===========》程序启动成功《===========");
    }
}
